package com.flying.flow.participant;

import java.util.List;

import com.flying.common.util.Utils;
import com.flying.framework.annotation.Service;

@Service("DemoParticipantProvider")
public class DemoParticipantProvider implements ParticipantProvider {

	@Override
	public List<Participant> getParticipants(String orgCode, String businessType, String source) {
		Participant p1 = new Participant() {

			@Override
			public String getId() {
				return "king";
			}

			@Override
			public String getName() {
				return "WangHaiFeng";
			}
			
		};
		Participant p2 = new Participant() {

			@Override
			public String getId() {
				return "admin";
			}

			@Override
			public String getName() {
				return "管理员";
			}
			
		};
		List<Participant> list = Utils.newArrayList();
		list.add(p1);
		list.add(p2);
		return list;
	}

}
